package xcmg.syn.web.mmpart;


import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xcmg.syn.infra.BasicController;
import xcmg.syn.service.mmpart.MmPartSupplierService;
import xcmg.syn.service.vo.mmpart.MmPartSupplierVO;
import yb.ecp.fast.infra.annotation.FastMappingInfo;
import yb.ecp.fast.infra.infra.ActionResult;

import java.util.List;


@RestController
@RequestMapping("/mmPartSupplier")
public class MmPartSupplierController extends BasicController {
    @Autowired
    private MmPartSupplierService mmPartSupplierService;

    @PostMapping(value = "/list")
    @ApiOperation("零件供应商关系")
    @FastMappingInfo(needLogin = true)
    public ActionResult<List<MmPartSupplierVO>> listPart(@RequestBody MmPartSupplierVO condition) {
        List<MmPartSupplierVO> list = mmPartSupplierService.queryList(condition);
        return actionResult(list);
    }

}
